<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/wechatLibs.jsp"%>
<!doctype html>
<html>
<head>
<title>美研社</title>
<meta charset="utf-8">
<meta name="viewport"
	content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<meta name="format-detection"
	content="telephone=no,email=no,date=no,address=no">
<style type="text/css">
html, body {
	background: #fafafa;
}
</style>
</head>
<body>
	<div class="find-project">
		<ul>
			<c:forEach var="project" items="${projectList}" varStatus="status">

				<li><a href="#"
					onclick="showProjectDetail('${project.projectId}')">
						<div class="bos">
							<img class="fl"
								src="http://4f2cb0c6.ngrok.io/three${project.coverPhoto}">
							<div class="intro fl">
								<h3>${project.projectName }</h3>
								<p class="num">${project.beautyPrice}</p>
								<div class="b">
									<span class="price fl">￥${project.rmbPrice}</span> <span
										class="time fr">${project.serverTime }分钟</span>
								</div>
							</div>
						</div>
				</a>
					<div class="operate">

						<span class="fl" id="tpyeName"><my:bisTypeName
								typeId="${project.typeId }"></my:bisTypeName></span> <a class="btn fr"
							href="#" onclick="selectShop('${project.projectId}')">预约</a>
					</div></li>
			</c:forEach>

		</ul>
	</div>
	<!-- 底部菜单 -->
	<div class="h88 mt20"></div>
	<div class="bottom-nav">
		<ul>

			<li class="find-project cur"><a
				href="/three/project/windex.jhtml"> <i class="ico"></i> <span>找项目</span>
			</a></li>


			<li class="find-gift"><a href="/three/bag/bagList.jhtml"> <i
					class="ico"></i> <span>找礼包</span>
			</a></li>


			<li class="mine"><a href="/three/home/goHome.jhtml"> <i
					class="ico"></i> <span>我的</span>
			</a></li>

		</ul>
	</div>
</body>
<script type="text/javascript">
	function showProjectDetail(projectId) {
		window.location.href = '/three/project/showProjectDetail.jhtml?projectId='
				+ projectId;
	}
	//预约项目
	function selectShop(projectId) {
		var typeName = $("#tpyeName").html();

		window.location.href = '/three/shop/goFindShop.jhtml?returnType=1&projectId='
				+ projectId + '&typeName=' + encodeURI(encodeURI(typeName));
	}
</script>
</html>